package com.pipayshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pipayshop.entity.ShopCommodityInfo;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 实体店的商品表 Mapper 接口
 * </p>
 *
 * @author zxb
 * @since 2023-07-27
 */
@Mapper
public interface HotelShopCommodityInfoMapper extends BaseMapper<ShopCommodityInfo> {

    /**
     * 根据购买数量、商品id =》商品库存复原
     * @return
     */
    int addStock(@Param("num")Integer num,@Param("roomId")String roomId);


}
